package cn.gov.service;

import cn.gov.vo.*;

import javax.swing.plaf.DimensionUIResource;
import java.util.List;
import java.util.Map;

public interface IBedService {
    public List<Building> getAllBuilding();
    public Map<String,Object> getFloorByBuilding(int id);
    public Map<String,Object> getBedByRoom(int id);
    public Map<String,Object> getRoomByFloor(int id);
    public void addBuildings(List<Building> buildings);
    public Map<String,Object> addBuilding(Building vo );
    public Map<String,Object> addFloor(Floor vo );

    public Map<String,Object> addRoom(Room vo );
    public Map<String,Object> addBed(Bed vo );
    public  int getBuildIdByName(String name );
    public  int getFloorIdByName(String name );
    public  int getRoomIdByName(String name );
    public boolean edit(Building vo );
    public boolean editFloor(Floor vo );
    public boolean editRoom(Room vo );
    public boolean editBed(Bed vo );
    public boolean del(int id);
    public boolean delFloor(int id);
    public boolean delRoom(int id);
    public boolean delBed(int id);
    public Map<String,Object> getRoomById(int id);

}
